package vip.housir.kotlindemo.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class User implements Serializable {
    private Long id;

    private String name;

    private String email;

    private Integer age;

    private Date createAt;

    private Date updateAt;

    private Map role;

    private List like;

    private List hate;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public Map getRole() {
        return role;
    }

    public void setRole(Map role) {
        this.role = role;
    }

    public List getLike() {
        return like;
    }

    public void setLike(List like) {
        this.like = like;
    }

    public List getHate() {
        return hate;
    }

    public void setHate(List hate) {
        this.hate = hate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", email=").append(email);
        sb.append(", age=").append(age);
        sb.append(", createAt=").append(createAt);
        sb.append(", updateAt=").append(updateAt);
        sb.append(", role=").append(role);
        sb.append(", like=").append(like);
        sb.append(", hate=").append(hate);
        sb.append("]");
        return sb.toString();
    }
}